<template>
  <section class="container" style="background-color: #FAFAFA;">
    <div class="personalData">
      <div class="menu">
        <div class="btn" :class="{'active': isActive}" @click="isActive = !isActive">
          <p>{{$t('personalCenter.personalData')}}</p>
        </div>
        <div class="btn" :class="{'active': !isActive}" @click="isActive = !isActive">
          <p>{{$t('personalCenter.setPassword')}}</p>
        </div>

      </div>
      <div class="main">
        <div class="main-title">
          <p>{{$t('personalCenter.personalData')}}</p>
        </div>
        <div class="user-message">
          <div class="flex avatar">
            <input type="image" src="" alt="">
          </div>
        </div>
      </div>
    </div>
  </section>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue';
import { getApp } from '@/common/hooks';
import { Messages } from '@/components/Warm/Popup';
import { Language } from '@/common/lang';

export default defineComponent({
  name: "news",
  components: {

  },
  data() {
    return {

    }
  },
  setup() {
    const { proxy } = getApp(["Vm"]).Vm;

    const handle = () => {
      Messages({});
    }

    const C = () => {
      proxy.$i18n.locale = Language.xiaomaoen;
    }

    const isActive = ref(true)

    return {
      isActive,
      handle,
      C
    }
  }
});
</script>

<style lang="scss" scoped>
.container {
  padding-top: 100Px;
}
.personalData {
  margin: 0Px 468Px 0Px 468Px;
  width: 984Px;
  height: 496Px;
  border: 1px solid black;
  display: grid;
  grid-template-columns: 20% auto;
  grid-gap: $-pc-space-size-m;
  .menu{
    background-color: white;
    height: 496Px;
    .btn{
      margin: 15Px 0 15Px 0;
      height: 34Px;
      color: #222;
      font-family: "PingFang SC";
      font-size: $-pc-font-size-m;
      font-style: normal;
      font-weight: 400;
      line-height: 34Px;; /* 150% */
      text-align: center;
      cursor: pointer;
    }
    .active{
      border-left: black 2Px solid !important;
    }
  }
  .main{
    background-color: white;
    padding: $-pc-space-size-m;
    .main-title{
      color: $color-main;
      font-family: "PingFang SC";
      font-size: $-pc-font-size-m;
      font-style: normal;
      font-weight: 400;
      line-height: 24Px; /* 150% */
    }
    .user-message {

    }
  }
}

</style>
